<?php
namespace LC\EntityBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="Tour")
 *
 * @author Ralf Almon 21.06.2013
 */
class Tour {
	
	/**
	 * @ORM\Id
	 * @ORM\Column(type="integer")
	 * @ORM\GeneratedValue(strategy="AUTO")
	 */
	protected $id;
	
	/**
	 * @ORM\Column(type="date")
	 */
	protected $starttime;
	
	/**
	 * @ORM\Column(type="date")
	 */
	protected $endtime;
	
	/**
	 * @ORM\ManyToOne(targetEntity="Track", inversedBy="touren")
	 * @ORM\JoinColumn(name="track_id", referencedColumnName="id")
	 * @var unknown
	 */
	protected $track;
	
	


	
	
	/**
	 * -------------------------------Getters and Setters - Boring ------------------------------------
	 */	
	
	
	
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set starttime
     *
     * @param \DateTime $starttime
     * @return Tour
     */
    public function setStarttime($starttime)
    {
        $this->starttime = $starttime;
    
        return $this;
    }

    /**
     * Get starttime
     *
     * @return \DateTime 
     */
    public function getStarttime()
    {
        return $this->starttime;
    }

    /**
     * Set endtime
     *
     * @param \DateTime $endtime
     * @return Tour
     */
    public function setEndtime($endtime)
    {
        $this->endtime = $endtime;
    
        return $this;
    }

    /**
     * Get endtime
     *
     * @return \DateTime 
     */
    public function getEndtime()
    {
        return $this->endtime;
    }

    /**
     * Set track
     *
     * @param \LC\EntityBundle\Entity\Track $track
     * @return Tour
     */
    public function setTrack(\LC\EntityBundle\Entity\Track $track = null)
    {
        $this->track = $track;
    
        return $this;
    }

    /**
     * Get track
     *
     * @return \LC\EntityBundle\Entity\Track 
     */
    public function getTrack()
    {
        return $this->track;
    }

    /**
     * Set biker
     *
     * @param \LC\EntityBundle\Entity\Biker $biker
     * @return Tour
     */
    public function setBiker(\LC\EntityBundle\Entity\Biker $biker = null)
    {
        $this->biker = $biker;
    
        return $this;
    }

    /**
     * Get biker
     *
     * @return \LC\EntityBundle\Entity\Biker 
     */
    public function getBiker()
    {
        return $this->biker;
    }
}